﻿using System.ComponentModel.DataAnnotations;
using VisionCloud.Core.Model.Enums;

namespace VisionCloud.Domain.DtoModel.Applet.RequestDto
{
    public class QueryPointReportDto : QueryHouseMapDto
    {
        public int? PointIndex { get; set; }

        /// <summary>
        /// 任务类型
        /// 自检 = 1,
        ///巡检 = 2
        /// </summary>
        public TaskTypeEnum? TaskType { get; set; }

        /// <summary>
        /// 任务属性，初测复测等
        /// </summary>
        public string TaskProperty { get; set; }

        /// <summary>
        /// 工程阶段
        /// </summary>
        public string ProjectStandard { get; set; }

        /// <summary>
        /// 时间限制条件：
        /// 不限 = 0,
        /// 近一周 = 1,
        /// 近一个月 = 2,
        /// 近半年 = 3
        /// </summary>
        public DateConditionEnum DateCondition { get; set; }

        /// <summary>
        /// 任务分类，0：实测实量任务，1:机器人任务；2:建模任务；3:排版任务；4:外立面任务
        /// </summary>
        [Required]
        public MeasureTypeEnum MeasureType { get; set; } = MeasureTypeEnum.实测实量任务;
    }

    public enum DateConditionEnum
    {
        /// <summary>
        /// 近一周
        /// </summary>
        近一周 = 1,

        /// <summary>
        /// 近一个月
        /// </summary>
        近一个月 = 2,

        /// <summary>
        /// 近半年
        /// </summary>
        近半年 = 3,

        /// <summary>
        /// 不限
        /// </summary>
        不限 = 0,
    }
}